package com.shanghaionstar.utils;

import android.content.Context;
import android.content.Intent;

import com.onstar.cn.common.util.CommonUtil;
import com.shanghaionstar.OnstarApplication;
import com.shanghaionstar.user.ReplenishInfo3Activity;

/**
 * Created by Yonglang Hong on 2017/3/14.
 */
public class Info3ReplenishHelper {

    /**
     * info3 补充用户姓名
     * @param context
     * @param onstarApplication
     * @return
     */
    public static boolean needInfo3Replenish(Context context,OnstarApplication onstarApplication){
        boolean needReplenish = ApplicationUtil.getInstance().isInfo3Flag()
                && CommonUtil.isNull(ApplicationUtil.getInstance().getFirstName())
                && CommonUtil.isNull(ApplicationUtil.getInstance().getLastName());
        if (needReplenish){
            context.startActivity(new Intent(context,ReplenishInfo3Activity.class));
        }
        return needReplenish;
    }

}
